package com.huangyi.mstemplateservice.service;


import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class TestThreadPoolServiceImpl {
    @Async("threadPoolTaskExecutor")
    public void info() {
        for (int i = 0; i < 20; i++) {
            log.info("TestThreadPoolServiceImpl thread name:{}", Thread.currentThread().getName());
            log.info("ThreadPoolConfig ");
        }
    }
}
